<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
    <i-form>
        <el-table v-if="isDisplay === true"
            :default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"  
            @sort-change="onSortChange($event)"  
            :border="isDragendCol"
            :class="true && items.length > 0 ? 'total-row-table' : ''"
            :show-summary="true && items.length > 0"
            :summary-method="getSummaries"
            :highlight-current-row ="isSingleSelect"
            :row-class-name="getRowClassName.bind(_self)"
            :cell-class-name="getCellClassName.bind(_self)"
            size="mini"
            stripe
            :height="tableHeight"
            @row-click="rowClick($event)"  
            @select-all="selectAll($event)"  
            @select="select.apply(_self, arguments)"  
            @row-class-name="onRowClassName($event)"  
            @row-dblclick="rowDBLClick($event)"  
            ref="multipleTable" :data="items" :show-header="!isHideHeader"
        >
            <template slot="empty">
                {{$t('entities.casestats.testcasestats_grid.nodata')}} 
                <span class="quick-toolbar">
                </span>
            </template>
            <template v-if="!isSingleSelect">
                <el-table-column align="center" type="selection" :width="checkboxColWidth"></el-table-column>
            </template>
            <template v-if="getColumnState('modulename')">
                <el-table-column show-overflow-tooltip :prop="'modulename'" :label="$t('entities.casestats.testcasestats_grid.columns.modulename')" :min-width="150"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.modulename')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.modulename}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('totalcase')">
                <el-table-column show-overflow-tooltip :prop="'totalcase'" :label="$t('entities.casestats.testcasestats_grid.columns.totalcase')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.totalcase')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.totalcase}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('passcase')">
                <el-table-column show-overflow-tooltip :prop="'passcase'" :label="$t('entities.casestats.testcasestats_grid.columns.passcase')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.passcase')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.passcase}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('failcase')">
                <el-table-column show-overflow-tooltip :prop="'failcase'" :label="$t('entities.casestats.testcasestats_grid.columns.failcase')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.failcase')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.failcase}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('blockedcase')">
                <el-table-column show-overflow-tooltip :prop="'blockedcase'" :label="$t('entities.casestats.testcasestats_grid.columns.blockedcase')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.blockedcase')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.blockedcase}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('totalruncase')">
                <el-table-column show-overflow-tooltip :prop="'totalruncase'" :label="$t('entities.casestats.testcasestats_grid.columns.totalruncase')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.totalruncase')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.totalruncase}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('passrate')">
                <el-table-column show-overflow-tooltip :prop="'passrate'" :label="$t('entities.casestats.testcasestats_grid.columns.passrate')" :width="130"  :align="'center'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.casestats.testcasestats_grid.columns.passrate')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.passrate}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
        </el-table>
    </i-form>
</div>